package com.zg.nacos.domain.vo;

import com.zg.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/23 20:34
 */

@ApiModel(description = "服务详情信息")
public class ServiceDetailVo extends BaseVo {

    /** 服务基本信息VO */
    @ApiModelProperty(value = "服务基本信息", required = true)
    private ServiceVo service;

    /** 集群信息VO列表 */
    @ApiModelProperty(value = "集群信息列表", required = true)
    private List<ClusterVo> clusters;

    // getter和setter方法
    public ServiceVo getService() {
        return service;
    }

    public void setService(ServiceVo service) {
        this.service = service;
    }

    public List<ClusterVo> getClusters() {
        return clusters;
    }

    public void setClusters(List<ClusterVo> clusters) {
        this.clusters = clusters;
    }

    @Override
    public String toString() {
        return "ServiceDetailVO{" +
                "service=" + service +
                ", clusters=" + clusters +
                '}';
    }
}
